Added some validations to the domain objects.
Added unit tests for the user domain objects to ensure correct behaviour.
Merge branch 'master' of https://github.com/S73417H/p2

Conflicts:
	app/models/user.rb
Merge branch 'master' of https://github.com/S73417H/p2
Updated unit tests to use newly exposed properties.