A basic login app from http://www.codeproject.com/Articles/575551/User-Authentication-in-Ruby-on-Rails#CreatingtheUserModel26