added: logout and ajax logout