def save_and_invite_member
      status = nil

      if (self.email.blank?)
        self.errors.add(:email, :blank)
      elsif User.where([ "lower(email) = ?", self.email.downcase ]).present?
        self.errors.add(:email, :taken)
			else
				check_or_set_password()
        status = self.save && self.errors.empty?
      end

      return status
    end
def save_and_invite_member
      status = nil

      if (self.email.blank?)
        self.errors.add(:email, :blank)
      elsif User.where([ "lower(email) = ?", self.email.downcase ]).present?
        self.errors.add(:email, :taken)
			else
				check_or_set_password()
        status = self.save && self.errors.empty?
      end

      return status
    end
------------------------------------------------------------------------
 ------------------------------------------------------------------------
 ------------------------------------------------------------------------
 save_and_invite_member -- saves the new user record thus inviting member
 via devise
 if password missing; gens a password
 ensures email exists and that email is unique and not already in system
 ------------------------------------------------------------------------