Regardless of the legality, he probably should have gone with the head first slide to the right of the plate and touching the plate with his hand. Would have had a better chance to avoid the tag and be safe and score the run.
It does look, on the view from right behind him, that he veered towards the catcher deliberately on the field side of the plate.