Adding redirection to add post functionality