Added an invite function to handle registration by email address. This creates a validation email with a link to the registration page. Corrected issues with registration where duplicate users were false positive.