Category normalizing user input securely best practices