Fixes the cheking of the account_type, despite the capitalization of the variable