added class to handle headers for basic auth.