redirect correctly on submission