implemented registering accounts