handle edge case of errors while editing a user