better check for redirect from editing a form