Adds block centering to validation class.