Added client side validation. Trying to keep a single entityManager