Introduce new user registration function, fix for #60.