Improved settings validation