Refactor user model from email field to username field.