refs #315 - Added security when accessing pages standalone. Improved security of submission form