added login/logout function in news apps