fixed to get username correctly.