Testing fixing user authentication