email rest support. also fixed bugs with duplicate usernames/email addresses.