fix issues when a user did not have an organisation
added local app.php config file