added required to quantity fields on add materials to room page. Added javascript validate