added devise and made login and logout work