Update views.py

Using get_username() and not .username let the posibility to returns the value of the field nominated by USERNAME_FIELD if a project is using a custom User model.