two fields validation done