fixed bad user check