Fix pendingusers issues

This branch covers task 2 and 3 from issue #39 
- a new user registration can't occur if that user already exists (either active or not)
- user names are checked to be a valid email address