Question: why enter apple id in settings?
Answer: It's possible your iPhone keeps asking for your Apple ID password because it's running an outdated version of iOS. Go to Settings -> General -> Software Update and check to see if an iOS update is available.