updating checkin functionality to interpret error and success messages given from the server