added visual feedback on error