Authentication tweaks
Add logging stuff :D