added login/logout/register/fb support.