add class [User.php] and corrected work with sessions