added logincheck and changed to jre-1.6