Fixed routing error after form submit