Normalize document categories

just way better
fix pre-filling invalid admin login form

it was wrong before, trying to access the value attribute instead of the data attribute.