If it worked once it shouldn't have a major problem, maybe just a glitch. Try turning it off and on again and see if you can log in. If the problem persists, try reinstalling the apps. If yet again the problem persists reinstall the iOS, and eventually if, god forbid, you still have problems get it to a service to have it checked out.
I hope I helped