There are two main mistakes preventing people from recognizing God. One is thinking you're God. Anyone who denies God is likely to fall prey to this. If there is no God and therefore no eternal morality then one has to make it up as they go along. As a result, such people easily end up thinking they're God and acting accordingly. The other main mistake is thinking someone else is God. This usually results in the creation, at the very least, of a cult leader and at the worst, a political/religious despot. Thus a lot of strife along political and religious lines is created where those who think they're God battle it out with those who think some other person is God or, associatedly, who think some other person's writings are somehow the word of God. These mistakes, of course, will tend to create an insidious guilt; a most horrible and pernicious guilt that will tend to prevent people from making a sound connection to God and the Divine. This guilt will make those experiencing it act much as the criminal who lies and tries to pretend that he has done no wrong by putting up a good front (and all of this right before God!).
When the ego is born, it is part of God and reflects this and knows this (probably not too consciously). So, as it develops (grows up) it can easily make the mistake of thinking it is God. To try to minimize this people have developed culture and law and religion all designed to keep the ego in its place, and to (hopefully) make the person a decent human being. One way that has been attempted to do this is to convince the ego that some other person is God (often the nation's leader). This is a terrible mistake and monotheism developed as a response. Monotheists tried to solve this by placing God beyond the beyond and making Him undefinable. At least He wasn't some human being anymore! Of course they still had to define morality, so they fell for an associated mistake. This was to assume that some other person's writings were divine and that these writings must be slavishly agreed to.
So how can this conundrum ever be solved? The solutions are straightforward. Be honest. Have courage. Think for yourself. Study and learn morality. Moral principles are eternal (even the gods must follow them). To be the happiest you can be, endeavor to place your attachments onto what's eternal (like moral principles) rather than what's temporary (like possessions, money or even your own life.) Learn from the mistakes of others and from your own. When you violate a moral principle, then as surely as night follows day you will suffer for it. When you adhere to a moral principle, then your respect , love and happiness will surely grow. Very important, however, is to realize who God is and where God is. We are all right on top of and surrounded by the Divine. Once it's realized that Earth is God and that He is right here, the problem solves itself and anyone who knows this can never be lied to about God again.