set up signin/signout functionality