Simplified the PHP controlling the forms to ensure there are no user facing errors.