add user_id validation to post model