[Edit] use UserType enum
[Add] encode md5 password