add devise gem and modify some config