Use get_username() instead of directly access to username field

Hello,
using a custom User model we can not assume the username field exist at all.

Cheers!