On the Cauchy problem for Schrödinger type equations and the regularity of the solutions