<div class="card">
    <div class="card-body">
        <div class="row">
            <div class="col-md-12">
                <form id="loginForm" method="POST" class="form-horizontal" action="<?= base_url('authentication') ?>" >
                    <div class="panel panel-info">
                        <div class="panel-body">
                            <div class="form-group">
                                <div class="col-sm-12">
                                    <h4 class="text-left">Welcome to back!</h4>
                                </div>
                            </div>
                            <hr>
                            <div class="form-group">
                                <label for="userId">User&nbsp;Id</label>

                                <input id="userId" type="text" class="form-control" name="userId" placeholder="Enter user login id."/>

                            </div>
                            <div class="form-group">
                                <label class="control-label" for="password">Password</label>

                                <input id="password" type="password" class="form-control" name="password" placeholder="Enter user password"/>


                            </div>
                            <hr>
                            <div class="form-group">

                                <button type="submit" class="btn btn-info btn-block">Login</button>

                            </div>
                        </div>

                    </div>
                </form>
            </div>

            <div class="col-md-offset-2 col-md-12">
                <a href="<?= base_url('registration') ?>" class="btn btn-outline-info btn-block" role="button" aria-pressed="true">Registration</a>


            </div>
        </div>
    </div>

</div>

<script type="text/javascript">
    $(document).ready(function () {
        $('#loginForm').bootstrapValidator({
            feedbackIcons: {
            },
            fields: {
                password: {
                    validators: {
                        notEmpty: {
                            message: 'Enter the user password.'
                        }
                    }
                },
                userId: {
                    validators: {
                        notEmpty: {
                            message: 'Enter user login id.'
                        }
                    }
                }
            }
        });

    });




</script>