Modularize password logic to concern.