added numeric if else validation