Update the API with fixes to loginCheck and control