trying to fix redirection after post is successful