Updated form to store the environment, protocol, and port in the session, so we do not have to select things anymore