Finished registration function, need to finish sendVerificationEmail