Added email validation backend logic;

Upgraded to Hibernate4