Ehm... else header (Location: login.php);

parse error...