Update login.php

fixed issue #1108
Merge pull request #1124 from Dandielo/2245c8d1b6990fe2c864b88701e3736fd67151d6

fixed the issue #1108