Fixed input validations client-side