valid registration form now redirects to index.php