completed angular login/logout