LoginJudge now checks with database