Preventing infinite loop when incorrect credentials are given.
Test for GL line features works now