Is there another way to go about accomplishing this security feature?