Changed the way checkboxes are created and managed to find a way to store the checkboxes, as per now they are stored as a long text string but this is just for better visibility. Added functionality to the submit button, it now checks if the patient id is set. Added a text that says required if patient id is not set. A problem that needs to be fixed is that the table head has 3 rows instead of just 1, this doesnt cause any problems other than that it looks ugly