Added input validations usinf JS Validation framework