Fix login and registration.