team registration ajax fix