fixed username checking