First version of registering process