add user input validations