Added update user function