adding method updateContact - updating record.