Added more checks for databaseUsername and databasePassword in webfrontend