Fixed validation

- restructured material content checking
- save_unit fields fixed to repopulate on failed add
- title field fixed to show error if title field is blank
- working on user-friendly error messages for wrong material