added login logout.