Fixed bug where user was redirected to wrong page after filling out a new post
form incorrectly