fix register user ability - function does not complete