add calls for detecting login status