Added login/logout using Ajax