fixed bugs in accounts.models