Fixed validation of autofocus and autoplay