fix for invalid username bug