adding basic authentication and login