commit to validate date when the user enters the date