Quick and dirty authentication from scratch, done for my learning blog.