added code to store user data in contacts API