Fixes issue 442: set attribute applicationTypes to model when validation failed