added cache to activerecord setting objects, in order to minimize database queries
added validation erros for each value type