prevented user from submitting multiple stages with the same name and also trimmed the input on text fields in stage and task tabs