make sure we check the origin of the form submission before processing registration