<div class="login-box">
    <form action="<?=base_url('login/verify')?>" method="POST">
        <br>
        <label for="uname"><b>Username</b></label>
        <input type="text" placeholder="Enter Username" name="uname"  <?php if(isset($username)):?>value = "<?=$username?>" <?php endif?> required>
        <br>
        <label for="psw"><b>Password</b></label>
        <input <?php if(isset($failure)):?> style="border-color: red" <?php endif?> type="password" placeholder="Enter Password" name="psw" <?php if(isset($password)):?>value = "<?=$password?>" <?php endif?> required>
        <?php if(isset($failure)):?>
            <br>
            <label class="error">The password is incorrect</label>
            <br>
        <?php endif?>
        <br>
        <button type="submit">Login</button>
        <br>
        <br>
        <label class="register">
            Don't have an account? <a href='<?=base_url('login/register')?>'>register here<a>
            <br>
        </label>
        <br>
    </form>
</div>