added extra validation to post and got test specs passing