check for valid env name on update action

On environment create we check env name to ensure it is valid,
however env update action doesn't do this validation check, so we add
the validation action in this commit.

Change-Id: Ib6fb146880eaca850a458b74d808db8ad80ce527
Closes-Bug: 1362780
Merge "check for valid env name on update action"