add validations for user input