support username and email option of new subcommand

Please review this patch.