<script language="javascript">
function SubmitForm()
{
	document.login.submit();
}

</script>      
 <div class="container">
 <form class="form-signin" role="form" name="login" action="<?php echo BASE_URL?>/admin/authentication" method="post">
  <table class="table-responsive" align="center" width="100%">
    <input type="hidden" name="act" value="Submit">
    <tr>
	    <td align="left">
			<h2 class="form-signin-heading">JPC Admin</h2>
    	</td>
    </tr>
    <?php if(!empty($error_msg)){?>
    <tr>
      <td align="center" class="alert alert-danger"><?php echo $error_msg?></td>
    </tr>
    <tr>
      <td height="2" align="center"></td>
    </tr>
    <?php } ?>
    <tr>     
      <td align="left" class="contentback"><input name="username" type="text" class="form-control" placeholder="Email address" required autofocus ></td>
    </tr>
    <tr>
      <td height="4" align="center"></td>
    </tr>
    <tr>
      <td align="left" class="contentback"><input name="password" type="password" class="form-control" placeholder="Password" required></td>
    </tr>
     <tr>
      <td height="4" align="center"></td>
    </tr>
    <tr>
      <td align="center" class="contentback"><button class="btn btn-lg btn-primary btn-block" type="submit" onClick="javascript:SubmitForm();">Sign in</button></td>
    </tr>
    <tr>
      <td align="left" class="contentback">
      <div class="row" style="padding-top:10px;">
      	<div class="col-lg-12">
            <div class="well well-sm">
              <a href="<?php echo BASE_URL?>/admin/forgotpassword">Forgot Password?, Click Here</a>
            </div>
          </div>       
      </div>       
      </td>
    </tr>
	</table>
  </form>
</div>