fix error with user authentication