fixed redirects for posts#new and posts#edit