Code refactoring. Add Devise gem