validation in settings page