start adding java persistance
added validation (does not work)