fixed empty validation