Implemented date validation in constructor