Add has-error to <form>