validation bugfix