Added a check that the logged in user is able to withdraw or transfer
money from an account. Moved authentication classes to the core