fixed Fatal error after clicking register for a new site user