Function to check if email address is available