Use cracklib to check passwords on change and reset

Move some relevant code from class PartyController to object
PartyController and object LoginController to make more general.