implementing an update to the User model