required validation is added to Input component