Added logout button, added interface for iPhone for logout;