Modified the accounts controller