Updated test.php
Added register function and password hashing.