adding logic to the modal so it only shows to sign-in users