fix bad parameters in email auth