Added login/session check to success page.

Added the check if someone is logged in to logged_success.php, the code can be reused on other pages, making a page secure and only available for logged in users.