Focus trusted-ui to enable focus (bug 1015109)

Whilst here added focus after error message is shown so you don't need to manually focus.