trying to fix logic of buttons on the sign in and sign out page