Use get_username() instead of directly access to username field since
we can not assume the username field exist.