$sth = $dbh->prepare("SELECT email FROM users WHERE LCASE(email) = '$regemail'");