add logout admin and error action