fixed invalid username bug