add play field validation and handle error from angularjs