updated both register functions to include the latest details, also setting up a verification method.