Update login_model.php

Changes as described here : https://github.com/panique/php-login/issues/344
Merge pull request #357 from Yacine-krk/patch-1

Update login_model.php