Fix user authentication