added login/logout method backbone