Move the security checks to a layer?

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #694 from emanuele45/security_checks

Security checks