Basic auth check

Still lots of checks to do.