Added logout for mobile devices