added base authentication