Changed password to MD5 digest format with some extra refactoring