Fixed the User.hbm.xml which had some issues with the database. Added
constructor to User class