Update Register.php

//you had $this->type = 1, I changed it to $this->type = 2