Restore the visibility state of the username field on orientation change