Created method to validate a horizontal rule