App syncing issue on iPhone

I have downloaded an app from appstore on iTunes like I normally do. There are 5 steps that are followed for the app to be completely installed in the phone. The app is free by the way. I am now getting a message that “This iPhone could not be synced because this computer is not authorized to purchase items on the iPhone….”. I have clicked on Authorize and entered my ID and password and my computer is now authorized. However, the message still reappears. I have restarted the computer severally but the message still appears when I try downloading any app. Help me please.
