Can't make radio button selection when condition is added