Actually assign $result
Update register.php

Use correct parameter binding
Use new format for the form
New hash function syntax
Add a way for older php versions to use run this