Added a way to ensure registered emails are unique + unit tests