Sanitizing results for login and register