Added check-in functionality to controller