user model toJSON wraps the attributes in a user object