pass attrs to input