Rewrote registration to use new MySQL model