Enable modify username and email.
Frontend need to update user info (i.e. username and email). Now the backend update api: /api/profile to enable frontend to modify these fields, and after updating email, the user will be set to inactive, which means user need to logout and validate his/her new email address.