Open the iTunes app in your home screen, log out from your apple account, reboot the device and go to iTunes app in your home screen and login back. When you are login and the page finish loading, close it and open your app store, you should already be login there as well, just tap any free app to install it, it will ask you to input your password again, do that and it will install the app on your home screen.