Fixed a bug in the account controller