Added settings#edit view
Refactored validation.