add comments add password_controller code refactoring