Fix error styles on devise pages

It closes #776.