Fixed that username is not remembered when registration fails and fixed
that username field has autocomplete.