check if email already exists before registration