validation error needs to work