Why put the error into $_SESSION?