Fixed security_check() method

Dunno if it' s still maintained, but just discovered this.

Cheers.