add custom validation to post model