The role of educational psychology in the preparation of teachers