Added more unit tests and some more implementation for the client-side date validation