Added validations for all inputs