Extend from InvalidArgumentException instead
Added EntityBase class.
Further implementation of User class
Added User unit tests.