module refactoring and adding the password parameters class