Fix losing focus on registration.