completed User registeration functionality