replaced redirect() to redirect(0)