I'm not a big fan of explicitly setting css values through JS. I'd rather see it toggling an .error class or something similar.