add a security chack