basic authentication, better logging