/**
  * user register.
  *
  * @return User|null the saved model or null if saving fails
  */
 public function register()
 {
     if ($this->validate()) {
         return User::create($this->attributes);
     }
     return null;
 }