Login / Logout actions and init directive