client validations for forms