Task i logging in

Put in a has_secure_passwrod to store an encrypted version of the password into the database. Controlled access to the administration functions using before action callbacks to invoke an authorize method. Used rails console to interact directly with model. Saw how a transaction can help prevent deleting the last user.