added validations for settings screen
added unit tests for settings validation