Sometimes when logging to a Sharepoint site using a Sharepoint account fails and the site asks for authentication again , it’s possible that the account is locked. To resolve, use a admin or system account to unlock the locked account.
Bruce Ng's software development blog
An archive of solutions of programming problems I have faced in my career