added update function for update user data