Validate create ref input not empty. Fixes #156

Change-Id: I1dcc3e4b4d9640c9768c50f8f769029558088ae5