Got the basic authentication working

Session handling needs to be improved