Restrict the length of the project name input

There is an allowed maximum length for project name field, but in
current code, it doesn't check or restrict that from UI side, i.e. user
will be able to type in more than what is allowed. After form
submission, it will fail but there is no clear message telling user what
caused failure.

After adding the code to restrict the max length of the project name
field, user will not be able to input more than what is allowed, thus
this error will be prevented from UI.

Change-Id: I6e61387c1e89e47e16354719870047c6e4760989
Closes-Bug: #1276389
Merge "Restrict the length of the project name input"