Fix the login protocol