Fixing Invalid date in depoist model - information given date wasn't being validated