Added updateUser method