fix login bug and username on header