public String execute(LogInObject logInObject) throws SQLException{

		String answer = "";

		String result = authenticateUser(logInObject.getAuthUsername(), logInObject.getAuthPassword(), logInObject.getIsAdmin());
		
		switch (result){
		case "1":
			logInRO.setLogOn(false);
			logInRO.setExplanation("The email or password is incorrect.");
			break;
		case "2":
			logInRO.setLogOn(false);
			logInRO.setExplanation("The user is inactive; contact an admin to resolve the issue.");
			break;
		case "3":
			logInRO.setLogOn(false);
			logInRO.setOverallID("brugertype ikke stemmer overens med loginplatform.");
			break;
		case "0":
			logInRO.setLogOn(true);
			logInRO.setExplanation("Logon succesfull.");
			break;
		default:
			logInRO.setLogOn(false);
			logInRO.setExplanation("System error.");
			break;

		}
		
		answer = gson.toJson(logInRO);

		return answer;
	}