implemented basic http authentication