Modified ng-value so it could be used with submit inputs