fixed is(post) check and redirect to dashboard