Sort keys so they don't come out in random order
Handle case where user email is already registered in the system.