How to provide validation for Calendar