moved username properties to user model