Fixed user authentication issue