Implemented duplicate username testing and added a find by username to
support the test in the domain and dao.