Modified principal authentication, now it is made in auxiliar class init, to make possible doing the destroy