set up signin and sign out functionality