made slight change to post create controller to guard against validation errors