Input sanitization for login.