implemented a working but bare user-registeration