Model validation now supported nested fields. Fixes to validation logic. AppError removed, was redundant.