Insert the logout method and the login error