Implemented enhancement #73: Improve validation and add fields trimming in connection form