added update method for user data