Adding validation rules to Post model and routes