documentation for validateSquare()