Imroved the core classes in the backend, and added several JUnit tests that tests the functionality in the User Registry.