Fix constraint bug on username and email when updating profiles.
Merge commit '456d14e1f819b24eb1aa38e8d1cadf31b83562ef'