Create validation for the Account Management form, and create functionality to allow user edit his/her user credentials. The validation includes the checking of the email and username to ensure that emails or username are unique to each other.