how to check if an email address already exists in the database in php