implemented registration

core, example user, and validation (search username and email)