Added settings page and form validation.