Check that the login URL is a HTTP/HTTPS one

I tried entering random data and it crashed, so a check wouldn't hurt.