add login and logout posts + callbacks. client side done!