Calendar pages: fixed typo in login check. createAvailabilityPage, createEventPage: fixed bug in instructor query.