add regexp check on repo's name

As the check to that the name contains a '/' (not a root repo) was in commands, I added the regexp here.

Tell me if you think it should be in the server.

Fixes #662