handled errors on profile edit action