fixing settings validation