Fix session and redirect issues on Controllers