fix canLogin/cannotLogin