Fix login API for users with @ in their usernames