Changed includes to require to fix form framework non-validation problem
Changed sequence of PHP blocks to check whether form will validate