Add logout and login error