make name attribute mandatory