implemented devise and login/logoff