Pull Request 

Please move this in the controller
$user_name=$_SESSION['username'];