Implement authentication

That is, make it actually work :)
Well, yeah! Don't know why I couldn't think of that solution. Thanks :)