add login/logout behaviors