Adding validation to settings page (INCOMPLETE!!!)