fixing level limit bug and adding level limit validation