Replaced gui repeating validation code in category related pages (most
of it)