added classes input and security, inspired from CI