PHP class scripts for security, validation and for rapid deployment