<div class="inner cover">
      	
	<h1 class="cover-heading">Login</h1>
     <div class="row">
     	<div class="col-md-12">

     		<?php
		    	if($this->session->flashdata('submit_error'))
		    	{
		    		?>
		    		<div class="alert alert-danger alert-dismissible" role="alert">
						<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;
						</span></button>
						<?php echo $this->session->flashdata('submit_error'); ?> 
					</div>
					<?php		   
		    	}	
		    ?>

		    <?php 
		    	if(!empty(validation_errors()))
		    	{
		    		?>
		    		<div class="alert alert-danger alert-dismissible" role="alert">
						<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;
						</span></button>
						<?php echo validation_errors(); ?> 
					</div>
					<?php
		    	}

		    ?>
       		<?php echo form_open_multipart('account/login');?>

       		<form action="<?php echo base_url('login')?>" method ="POST">
			<div class="panel panel-default">
			  <div class="panel-heading"></div>
				  <div class="panel-body">	    
					  <div class="form-group">		
					    <input type="text" class="form-control input-lg" name="username" value="<?php echo set_value('username');?>"placeholder="Username">
					  </div>
					  <div class="form-group">		
					    <input type="password" class="form-control input-lg" name="password" placeholder="Password">
					  </div>					  
			  
				  </div>
			  <div class="panel-footer">
			  	<input type="submit" name="submit" value="Login" class="btn btn-success btn-block btn-lg">
		</div>
	</form>
       
       </div>
</div>

          
