Fixed night trial prblem. Fixed exception when not registering. Fixed compatibility with Java 6