fixed not displaying error when none input