Password protecting template, secured content not showing if even password is right

I solved issue with suggestion of @TheDeadMedic.

Below is the code. As he told added while have post. I added it after header.

<?php
/**
 * Template Name: Page
 *
 */
global $post; 
if ( ! post_password_required( $post ) ) {
get_header();
while ( have_posts() ) { the_post(); }
?>
<div id="Content">
    <div class="content_wrapper clearfix">
secured content here

</div>
</div>
<?php 

get_footer(); 
}else{
    // we will show password form here
    echo get_the_password_form();
}