Added Devise
changed order routes
Fixed Application error