Added form validation for settings tab

Added form validation for settings tab