Added authentication handler for basic auth check