refactored error form into partial