Fixed session validation (if you're not logged in it asks you to do it)....

... It must be done on the other files as done in this example.
You can ask for help if you want to :D