Ajax login/logout implemented.