Login/logout moved to utils