(Almost) working user registration