show correct UI elements depending on username must be email setting in sign-up plugin
Sign-Up plugin controls whether the username must be an email address or not. As such the UI must follow this setting and show correct UI and call respective APIs correctly.