Authenticate the user before initialising other classes