Added sanity checks for registration.
Registration now only needs the email once.

Todo: Check username against server.