redirect() function po is not existing in dietcake, I'll just create a helper function po for redirecting