commit to validate if user enters valid date.If the date is in past an exception is thrown.