Added option for secure modules to check login using HTTP basic auth