adds valid method for Category prototype