Query q = new Query("Login Information");
q.addFilter("username", Query.FilterOperator.EQUAL, username);
Entity qe = datastore.prepare(q).asSingleEntity();
String password = (String) qe.getProperty("password");
boolean active = (Boolean) qe.getProperty("active");
LoginInformationObject lio = new LoginInformationObject(username,password,active);
return lio;
}