Sanitize login and registration inputs