input validations added