fixed authentication error with user login