Validates accounts to fix #336.

#336.