checkin functionality implemented