Moved the raise for the $base_url to the Register class.