modified basic password management according to coding guidelines