FYI, we have a rule library for the form validation in libraries/validation_rules.php. If you want, you could move the rules over there. We would like to put all the rules together.