making registration simplified completing issue #38