Change flash message to cookie in hpp redirect_path