Mr.Sharma wants you to design a login screen where the user has 3 attempts to login into his website.
Given below is a code snippet that authenticates a user using their email and password. If the password does not match, a WrongPasswordError
is raised.
Your task is to capture this exception and reduce the number of login attempts by 1. Re-raise the exception once this is done.