Adjust html for minor syntax issue, set page redirect to fail gracefully if there is an error.