Fixed broken logic in CheckinsController