Add Devise gem, drop user table to re-create it with Devise generator, add role to User model and make changes in populate rake task and seed file accordingly.