Fix authenticateUser call