main.php renamed to index.php, added e-mail validation during registration