Added validations on search page