Implemented user registeration