fix for user authentication