integrated devise with login and logout