added authentication with devise gem 3