I'm trying to understand where the "password entry cannot be empty" message is coming from. I'm guessing it's happening when you try to change and commit the Account entity.
This would indicate that you are somehow setting the Account entity's password to an empty password string. Read up on the debugger to learn to set a breakpoint and inspect your attribute values.