validating both fields now