Religion and astrology has no place in the conversation as to whether or not Psychology is real, you cannot say that the supposed word of god declares that it is false. Religion is subjective and what people believe differs from person to person, which makes it somewhat unreliable for determining things if someone believes that their god is real because their god said so compared to the other guy who believes his god is real because his god said so.
Medieval times also has no place in this conversation. You're bringing up a lot of unrelated topics, albeit, psychology and science has always been an always evolving field and back then, leaders were corrupt and used their influence to control what people believed. They did not believe that how people acted was satanic because the bible said so, but because their church told them so.
Religion and science are to be discussed separately. Science has a lot of proof, studying, testing, whereas religion is solely based off of faith. I would like to ask of you if this means that if you believe things in a purely religious perspective that you believe people with autism are the work of satan or something like that?