add validation for calendar
Merge pull request #268 from Verkalets/fixing

add validation for calendar