Fixed crash issue if not logged in.