Added exceptions
Added exception to form field factory
Implemented DI in service factory