refactor : encode password with md5