IMPORTANT BUGFIX in logincheck.php / cleanup