added 302 code for location redir

Fixes routing user to index from submit
after they make a post.