President erred in rejecting Deuba's claim for premiership,