Found an easier way for date validation and got rid of old
implementation.