fixes redirect route issue after successful profile update