Changed login.php to index.php. Fixed validation error