Position validation error using CSS instead of JS