added menu structure and validation to the settings form