added update method for user