added application.rb code and other devise dependncies