add option to auth with public key (needed for email validation)