error msg when session is not created before post