added validation of booking period