Added validation to settings page