Update login.php

updated if loop