Added another check to the update_attributes! method.