corrected bug in create and update method for contacts