<?php if(count($error)>0): ?>
	<div>
		
	<?php
	foreach ($error as $errors) : ?>
		<p><?php echo '<span style="color:red;"><em>'.$errors.'</em></span>' ?></p>
	<?php endforeach; ?> 

	</div>
<?php endif ?>