corrected bug on checkIn route function