add validation to ads and category model, fix views