changed username reference to actual User model