Why is our condition not calculating email field as required