[FIXED JENKINS-20776] - Added validation of classNames in the form

Resolves https://issues.jenkins-ci.org/browse/JENKINS-20776

Signed-off-by: Oleg Nenashev <nenashev@synopsys.com>