debugging redirect on form submit