Adds validations and json responses for check ins

I am not entirely sure what authenticate_user does and am not sure if it has anything to do with checking for the token.