do not show error box if err is undefined
fixed stake limit check