Functioning authentication

Well that was fun...
authentication w00t w00t!