Update login_model.php

Changes as described here : https://github.com/panique/php-login/issues/344