added devise and login logout