fix username login bug