The work is extended as follow:
If the user doesn't fill the password field, then the form can be submitted and the password will not be updated.
If the user fills the password field, then the password will be updated.
A message should be displayed near the Password label to inform the user that the password field should be filled only if the password needs to be updated.
If the user edits their email and chooses an email which already belongs to another existing user, an error should be displayed.
The work is extended as follow: If the user doesn't fill the password field, then the form can be submitted and the password will not be updated. If the user fills the password field, then the password will be updated. A message should be displayed near the Password label to inform the user that the password field should be filled only if the password needs to be updated. If the user edits their email and chooses an email which already belongs to another existing user, an error should be displayed.