i have added input  validations