Added: tests for client side
Fixed: a bug in date validation