First implementation of user registration