validateAttributes was always returning true even if a field was invalid, and added a check to see if the date is valid