fix bug login with empty username