/**
  * @return RegistrationForm
  */
 public function Form()
 {
     /** =========================================
          * @var Member $member
         ===========================================*/
     /** If the user is logged in, redirect to the Homepage with an alert message prompting logout. */
     if ($member = Member::currentUser()) {
         return '<div class="alert--warning">You\'re currently logged in as <strong>' . $member->Email . '</strong>. To register as a different user <a href="' . Director::absoluteBaseURL() . 'Security/logout?BackURL=' . $this->Link() . '">log out.</a></div>';
     } else {
         $form = RegistrationForm::create($this, 'Form');
         $this->extend('updateRegistrationForm', $form);
         return $form;
     }
 }