Connected to server api but atm inserting duplicates and without authenticateing the user