add basic authentication support (no login yet, registration only)