added files and fixed login.php