added settings validation