added validations for date and number type quesitons