Add a basic validation of the branch value

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>