Clearing "Initialize repository with a README" checkbox when the project name contains forbidden characters

Hello!

We are using GitLab Community Edition 11.3.4.

When I try to create new project, select options (Visibility Level and Initialize repository with a README) and use incorrect project name (which includes forbidden characters) and click Create project button, the option "Initialize repository with a README" is set back.

I believe it is bug and the desired behavior is to save option after page reload.

Another thing is that the error message ("The form contains the following errors: ...") is shown ONLY after clicking the "Create project" button. I believe that it is good for UX/UI to shift the validation to the step before. I.e. validate input immediately after changing the focus on controls.

So:

  1. please fix the issue with the clearing the checkbox "Initialize repository with a README"
  2. please make the estimation about UI improving