added validations for following