only set input and errors sessions if redirecting with one