Added exception handling on the update username.