Changed hardcoded serverURL to user-entered one. The check on the URL
isn't robust, but will be suitable for testing.