Adding update user function