fix date validation in add and update entry