Modified entityAbstract to validate itself