replaced auth to email-pwd based