OK, first thing's first... Make a new file, copy and paste the following into it. Let me know what this does for you. It should show your login box, and when you enter the email address and all, and click submit, should echo whether it is valid or not below it. All of this should occur on the same page. We'll go on from there, once you get this working.
<?
$error = "";
IF(isset($_POST['email'])):
$email = $_POST['email'];
IF(!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*". "@([a-z0-9]+([\.-][a-z0-9]+))*$",$email)):
$error .= "That is not a valid email address.";
ELSE:
$error .= "That is a valid email address";
ENDIF;
ENDIF;
?>
<html>
<head><title>The Test Page</title></head>
<body><font face="arial,helvetica" size="2">
<font size="5">Login</font><br><br>
<form method=post>
Email: <i><font color="gray">Must be standard email address</i></font><br>
<input type="text" name="email"> <input type="submit" value="Submit">
</form>
<?
echo $error;
?>
</body></html>