Fixed check on connecting to network page

It should now only redirect to home when the network is encrypted and
there is no form data (or there are no url params).
Use minified javascript