fixed log in count