Improved CAS login module to properly work with http basic auth login module