Fixed missing resource and a missing call to save the entered server.
Minor code "style" fixes.