fix login and check calls