Small fixes for user authentication.