The best way would be to reorder the clauses and provide correct conjunctions ; I was required to fill out an impressive number of forms in order to prove my identity so that I could gain entrance to the building
This way the actions required are justified by the main purpose of doing such things.