Solve login problems, modify home.php