Validate project name input with Javascript