Improved error checks in the configuration page