Fixed validation error in Post Controller