Add update method to user model