Is it a good practice to use Retry Scope in login to an application?

Hi All

Is it a good practice to use retry scope in login workflow? What if the credential has changed and its throwing invalid login message. Then here no point in retrying.

And also after retrying for 3 times how the bot will know login is failing due to incorrect credential and will throw the exception accordingly ?