added basic auth layer

not recomended for use on production enviroments
test for basic auth