Add devise gem and configure to allow email or username as login.