https://www.php-resource.de/en/php-scripts/User-Management--Authentication_65165