added validations not to allow entering of future date