Add category validation to post model