added error and success message but the update fails due to some data type conversion fail