Moved Form Validation handling from global.php into the controllers.