Corrected a problem with user authentication