Changed Registration to JPA (first iteration)