added result codes to server dialog

(Accepted iff all necessary values were provided and the connect button
was clicked)