Added date input
Fixed another error

Changed setSalt($salt); to $this->setSalt($salt);
Register now works