I cant get user authentication to work