Created Authentication from Scratch by following guidlines from http://asciicasts.com/episodes/250-authentication-from-scratch