Fixed error when user email already found.

Removed most debugging calls.
Cleaned up validation logic.
Removed debugging calls.
Merge branch 'hotfix-reg-val-error' into develop