Added extra level of authentication to code