Security fix and phpunit test creation (login+page reaching)