Added settings validation