changes for username being none in custom user model