Added a statement that blocks the user if number of login attempts > 3.