We are talking about sheaves of rings
$$\mathcal F:Open(X)^{op}\to Rings$$
If the image of $f$ in all stalks $\mathcal F_x$ for $x \in U$ is a unit, then $f \in \mathcal F(U)$ is a unit.
I have checked $f\in\mathcal{O}_X(X)$ is a unit $\Leftrightarrow f_x\neq 0$ for all $x\in X$
they are different questions.
My feeling about the question is negative. First, if $\phi,\psi$ agree on all stalks for every $x\in U$ then we can say they are equal since we can glue using sheaf condition. However, if $f$ is unit I feel we cannot glue to global unit element. Cannot construct a counterexample.