add prePersist function for entite User