I found what is going wrong.
The file ‘/custom/modules/Users/Login.php’ tries to include “recaptcha_utils.php” at line 163, this file does not exist so the login page cannot run until the end.
I have commented this line and the one which calls displayRecaptcha() and now I can log in.