Fix Basic Auth Check