Added a method to show error for Post new/edit form