
<title><?php echo $title ?></title>
<?php echo link_tag('resources/style.css');?>

</head>
<body>
<div id="conteiner">
    <h2><?php echo $page_header ?></h2>
    <div id="body">
        <?php

        if(isset($email)&& isset($password)){

            echo validation_errors();
            echo 'your username is:'.$email.'<br/>';
            echo 'your password is:'.$password.'<br/>';
            echo 'your password length is:'.$pass_length.'<br/>';
            echo 'your submitted from '.$url.'<br/>';
            print_r($_POST);
        }

        else{

            echo validation_errors();
            echo form_open();

            echo '<label for="username">Email:</label><br/>'.form_input('email',set_value('email')).'<br/><br/>';
            echo '<label for="password">Passwor:</label><br/>'.form_password('password','').'<br/><br/>';

            $url_sent_from=current_url();
            echo form_hidden('url',$url_sent_from);
            echo form_submit('mysubmit','Login');
            echo form_close();



        }





        ?>


    </div>

</div>

</body>

</html>